<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo $title ?> - Login</title>

<style type="text/css">
body {
	background-color: #fff;
	margin: 40px;
	direction: <?php echo $this->lang->line("direction"); ?>;
}

h1 {
	color: #444;
	font-family: serif;
	font-size: 16px;
	font-weight: bold;
	margin: 4px 0 2px 0;
	padding: 5px 0 6px 0;
}

.form {
	background-color: #e8eefa;
	border: 1px solid #C3D9FF;
	color: #002166;
	display: block;
	width: 260px;
	text-align: center;
}

a {
	text-decoration: none;
}

* {
	font-family: Tahoma;
	font-size: 11px;
}

.inputtext {
	border: 1px #f9f9f9 solid;
	direction: ltr;
}

.inputtext:hover,.inputtext:focus {
	border: 1px navy solid;
}

.inputbutton {
	border: 1px black solid;
	background-color: #f9f9f9;
	cursor: pointer;
}
</style>
</head>
<body>
	<div style="border-bottom: 1px solid black;">
		<table>
			<tr>
				<td nowrap="nowrap"><h1><?php echo $this->lang->line("welcome"); ?></h1></td>
				<td width="100%"></td>
				<td nowrap="nowrap" valign="bottom"><div align="left" style="padding: 5px;font-weight: normal;">
					<?php echo ($this->lang->line("lang") == "fa")?jdate("l j F Y"):@date("l, j F Y"); ?>
				</div></td>
			</tr>
		</table>
	</div>
	<br><br><br>
	<center>
		<div class="form">
			<div style="border:2px solid #FFFFFF;">
				<br>
				<div align="<?php echo $this->lang->line("align"); ?>" style="padding: 10px;"><?php echo $this->lang->line("form-msg"); ?></div>
				<?php if(isset($message)) echo "<p style='color:red;'>$message</p>"; ?>
				<?php echo form_open(site_url("cp/users/login")); ?>
					<table width="100%" border="0" cellpadding="5">
						<tr><td><?php echo $this->lang->line("username"); ?> :</td><td><input type="text" name="username" class="inputtext" /></td></tr>
						<tr><td><?php echo $this->lang->line("password"); ?> : </td><td><input type="password" name="password" class="inputtext" /></td></tr>
						<tr><td colspan="2" align="<?php echo $this->lang->line("align"); ?>"><label><input type="checkbox" name="remember" value="1" /><?php echo $this->lang->line("remember"); ?></label></td></tr>
						<tr><td align="center" colspan="2"><input type="submit" value="<?php echo $this->lang->line("login"); ?>" class="inputbutton" /></td></tr>
					</table>
				<?php echo form_close(); ?>
				<br>
			</div>
		</div>
		<br/><p>
			<?php echo $copyright ?><br />
			<!-- span style="font-size: 9px;">Powered by <a style="font-size: 9px;" target="_balnk" href="http://www.yekcomputer.com/">yekcomputer</a></span -->
		</p>
	</center>

</body>
</html>